package com.lxw.oa.controller.common;

import java.util.List;
import java.util.Map;
import com.lxw.oa.controller.io.BaseTo;
import com.lxw.oa.service.ShopService;
import com.lxw.oa.util.LogAopIn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/shop")
public class ShopController{

	@Autowired
	private ShopService shopService;

	/**
	 * 商户分析
	 * @return
	 */
	@LogAopIn(moduleName="商户管理-商户排行",option="初始化页面")
	@GetMapping("/getShopMapRank")
	public String Log_getShopMapRank(){
		return "pages/mapShop/ShopMapRank";
	}
	
	/**
	 * 得到商户信息
	 * @return
	 */
	@GetMapping("/getShopList")
	@ResponseBody
	public BaseTo getShopList(){
		List<Map<String,String>>list=shopService.getShList();
		return new BaseTo(list);
	}

	@GetMapping("/getBigScreen")
	public String getBigScreen(){
		return "pages/BigScreen";
	}
	

	
	
}
